package com.aerotechnic.service.implementation;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.aerotechnic.dao.implementation.PhaseDao;
import com.aerotechnic.dao.implementation.SpecialiteDao;
import com.aerotechnic.entities.Specialite;
import com.aerotechnic.service.interfaces.SpecialiteBoIn;

@Service("SpecialiteBo")
@Transactional
public class SpecialiteBo implements SpecialiteBoIn {

	@Autowired
	private SpecialiteDao specialiteDao;
	
	@Override
	public void save(Specialite spec) {
		// TODO Auto-generated method stub
		specialiteDao.save(spec);
	}

	@Override
	public void update(Specialite spec) {
		// TODO Auto-generated method stub
		specialiteDao.update(spec);
	}

	@Override
	public void delete(Long id) {
		// TODO Auto-generated method stub
		specialiteDao.delete(id);
	}

	@Override
	public Specialite findByID(Long id) {
		// TODO Auto-generated method stub
		return specialiteDao.findByID(id);
	}

	@Override
	public List<Specialite> findAll() {
		// TODO Auto-generated method stub
		return specialiteDao.findAll();
	}

	@Override
	public List<Specialite> find(int jtStartIndex, int jtPageSize) {
		// TODO Auto-generated method stub
		return specialiteDao.find(jtStartIndex, jtPageSize);
	}

	@Override
	public int countAllSpecialite() {
		// TODO Auto-generated method stub
		return specialiteDao.countAllSpecialite();
	}

	@Override
	public Specialite findByIntitule(String specInt) {
		// TODO Auto-generated method stub
		return specialiteDao.findByIntitule(specInt);
	}

	

}
